import request from '@/utils/request'

//获取文献分页信息
export function getPaperPageInfo(page, size, queryPaperVo) {
  return request({
    url: `/paper/${page}/${size}`,
    method: 'post',
    data: queryPaperVo
  })
}

//获取文献检索分类信息
export function getPaperCategoryInfo() {
  return request({
    url: `/paper/getAllSubjectInfo`,
    method: 'get'
  })
}


//文件下载
export function downloadFile(fileName) {
  return request({
    url: `/paper/download/${fileName}`,
    method: 'get',
  })
}



//删除文献信息
export function deletePaperInfo(paperId, paperName) {
  return request({
    url: `/paper/${paperId}`,
    method: 'delete',
    params: {paperName}
  })
}



